﻿<%@ Page Theme="BlueSkin" Title="LMS : Admin --> Print certificate" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="PrintCertByAdminEN.aspx.cs" Inherits="PrintCertByAdminEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
        
        
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
                Admin --> Print certificate
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins  direction" style="margin-bottom:20px;margin-left:30px;margin-right:30px;font-size:14px;">
        <div class="floating direction aligning" style="width:80px;">
             <asp:Label ID="lblBadge" runat="server" Text="Badge"></asp:Label>
         </div>

         <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" 
                 BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>

        


        <div class="clearing"></div>

       

        
        

    </div>
    <div class="clearing" style="height:10px;"></div>

    <div class="aligning allWidth floating direction" style="margin-bottom:10px;">
        
        
        <div class="aligning allWidthWithMargins  direction" style="margin:30px;">
           
            <asp:GridView ID="grdCourses" runat="server" AutoGenerateColumns="False" 
            Font-size="12px" AllowPaging="True" EnableModelValidation="True" 
            DataKeyNames="ID"  Width="840px" 
                onpageindexchanging="grdCourses_PageIndexChanging">

            <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="lblEmptyGrid" runat="server" Text="Label" >No Certificates found with this Badge</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>


            <Columns>
               
                <asp:TemplateField HeaderText="User name" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                    <ItemTemplate>
                        
                        <asp:Label ID="lblUserName" runat="server" Text='<%#((DatabaseComponent.FinishedExams)Container.DataItem).objRegisteredCourses.objPersons.getFullName() %>'></asp:Label>
                    </ItemTemplate>
                
                    <HeaderStyle CssClass="gridRowStyle" />
                    <ItemStyle CssClass="gridRowStyle" />
                
                </asp:TemplateField>


                <asp:TemplateField HeaderText="Course name">
                    <ItemTemplate>
                        
                        <asp:Label ID="lblCourseName" runat="server" Text='<%#((DatabaseComponent.FinishedExams)Container.DataItem).objRegisteredCourses.objCourses.CourseNameEN%>'></asp:Label>
                    </ItemTemplate>
                
                </asp:TemplateField>


                <asp:TemplateField HeaderText="Certificate date">
                    <ItemTemplate>
                        
                        <asp:Label ID="lblCourseName" runat="server" Text='<%# Eval("CurrentDate","{0:dd/MM/yyyy HH:mm}") %>'></asp:Label>
                    </ItemTemplate>
                
                </asp:TemplateField>

               
                <asp:TemplateField HeaderText="Certificate degree">
                    <ItemTemplate>
                        
                        <asp:Label ID="lblCourseName" runat="server" Text='<%# Eval("Degree") %>'></asp:Label>
                    </ItemTemplate>
                    
                
                </asp:TemplateField>


                 <asp:TemplateField HeaderText="Action">
                    <ItemTemplate>
                        
                        <asp:HyperLink runat="server"  ID="hlPrint" Target="_blank" NavigateUrl='<%# "print_cert.aspx?ID=" + Eval("ID").ToString() + "&without=1" %>'>Print</asp:HyperLink>
                        
                    </ItemTemplate>
                
                </asp:TemplateField>
                
                
                
                
            </Columns>
        </asp:GridView>


        </div>
        
        
        
        
        <div class="clearing"></div>

    
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

